﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using Team6_Algorithms.Filters;

namespace VisionApplication
{
    class Masker : VisionAlgorithm
    {
        public Masks m = new Masks();

        public Masker(String name, string[] required) : base(name, required) {
            
        }

        public override System.Drawing.Bitmap DoAlgorithm(System.Drawing.Bitmap sourceImage, Object obj)
        {
            Bitmap returnImage = new Bitmap(sourceImage);

            Masking.applyFilter(returnImage, settings.mask);
            this.Image = returnImage;
            return returnImage;

        }
    }
}
